import request from '@/utils/request'

//检查项目查询
export function inspectInfo(data) {
  return request({
    url: '/ehr/inspectInfo/list',
    method: 'post',
    data
  })
}
//指标项查询
export function indicators(data) {
  return request({
    url: 'ehr/indicators/list',
    method: 'post',
    data
  })
}

// 新增检查项目
export function inspectInfoAdd(data){
  return request({
    url: '/ehr/inspectInfo/add',
    method: 'post',
    data
  })
}
//保存编辑检查项目
export function saveInspectInfo(data){
  return request({
    url: '/ehr/inspectInfo/edit',
    method: 'post',
    data
  })
}

//保存编辑指标项目
export function saveIndicators(data){
  return request({
    url: '/ehr/indicators/add',
    method: 'post',
    data
  })
}

//保存指标项目POST /ehr/indicators/edit
export function saveItem(data){
  return request({
    url: '/ehr/indicators/edit',
    method: 'post',
    data
  })
}

export function saveTemplate(data){
  return request({
    url: '/ehr/indicators/template',
    method: 'post',
    data
  })
}
